From f1004a8472d6bbda47ba16eee6635aabc03abd86 Mon Sep 17 00:00:00 2001 From: robertl Date: Mon, 12 Dec 2005 19:37:26 +0000 Subject: [PATCH] Allow override of Yahoo address field separators. --- gpsbabel/yahoo.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gpsbabel/yahoo.c b/gpsbabel/yahoo.c index 095c86be9..dfc16aca2 100644 --- a/gpsbabel/yahoo.c +++ b/gpsbabel/yahoo.c @@ -24,12 +24,16 @@ static FILE *ifd; static waypoint *wpt_tmp; +static char *as; #define MYNAME "yahoo" static arglist_t yahoo_args[] = { - {0, 0, 0, 0, 0} + {"addrsep", &as, + "String to separate concatenated address fields (default=\", \")", + ", ", ARGTYPE_STRING }, + }; static xg_callback wpt_s, wpt_lat, wpt_lon, wpt_e; @@ -96,7 +100,7 @@ void wpt_lon(const char *args, const char **unused) void wpt_addr(const char *args, const char **unused) { if (wpt_tmp->notes) { - wpt_tmp->notes = xstrappend(wpt_tmp->notes, ", "); + wpt_tmp->notes = xstrappend(wpt_tmp->notes, as); } wpt_tmp->notes = xstrappend(wpt_tmp->notes, args); } -- 2.30.2